<?php
/**
 * Created by PhpStorm.
 * User: 86188
 * Date: 2021/12/1
 * Time: 10:46
 */

namespace vendor;

use vendor\core\student;

require 'core/student.php';

//创建对象
$stu=new student('公孙璃',35,'男');

//调用对象方法
$stu->eat();

//使用静态属性
echo student::$type;
echo '<br>';

//调用静态方法
student::setType('安保');

//使用静态属性
echo student::$type;
echo '<br>';